﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:local="clr-namespace:EIA.SLClient.PlatManage.PMMgr"
	xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" xmlns:EIA_SLClient_Utility_Behaviors="clr-namespace:EIA.SLClient.Utility.Behaviors;assembly=EIA.SLClient.Utility"
	mc:Ignorable="d"
	x:Class="EIA.SLClient.PlatManage.PMMgr.ConsOrgEditView"
	d:DesignWidth="640" d:DesignHeight="480">
	<UserControl.Resources>
		<local:ConsOrgEditViewModel x:Key="ConsOrgEditViewModelDataSource" />
	</UserControl.Resources>

	<Grid x:Name="LayoutRoot" DataContext="{Binding Source={StaticResource ConsOrgEditViewModelDataSource}}">
		<Grid Background="#19FFFFFF" Visibility="{Binding IsShow, Converter={StaticResource Bool2VisibilityConverter}, Mode=TwoWay}">
			<Grid HorizontalAlignment="Center" Height="240" VerticalAlignment="Center" Width="360">
				<Grid.Effect>
					<DropShadowEffect BlurRadius="1" ShadowDepth="1" Opacity="0.1"/>
				</Grid.Effect>
				<Grid.RowDefinitions>
					<RowDefinition Height="30"/>
					<RowDefinition/>
				</Grid.RowDefinitions>
				<Grid>
					<Path Data="M1.9999981,0 L298,0 C299.10458,0 300,0.89542961 300,1.9999981 L300,28.000002 L300,30 L298,30 L1.9999981,30 L0,30 L0,28.000002 L0,1.9999981 C1.1175871E-07,0.89542961 0.89543062,0 1.9999981,0 z" Stretch="Fill" StrokeThickness="0" UseLayoutRounding="False">
						<Path.Fill>
							<ImageBrush Stretch="Fill" ImageSource="/EIA.SLClient.PlatManage.PMMgr;component/assets/img/pop_header_bg.png"/>
						</Path.Fill>
					</Path>
					<StackPanel HorizontalAlignment="Left" Orientation="Horizontal">
						<TextBlock TextWrapping="Wrap" Text="建设单位 - " Foreground="White" VerticalAlignment="Center" FontSize="14.667" Margin="16,0,0,0" HorizontalAlignment="Left"/>
						<TextBlock TextWrapping="Wrap" Text="{Binding TitleTip}" Foreground="White" VerticalAlignment="Center" FontSize="14.667" HorizontalAlignment="Left"/>
					</StackPanel>
					<Button Content="" BorderThickness="0" Padding="0" Style="{StaticResource button_clear_style}" Command="{Binding CancelCommand}" FontSize="14.667" HorizontalAlignment="Right" Width="16" Height="16" Margin="0,0,8,0" VerticalAlignment="Center">
						<Button.Background>
							<ImageBrush Stretch="Fill" ImageSource="/EIA.SLClient.PlatManage.PMMgr;component/assets/img/close-1.png"/>
						</Button.Background>
						<i:Interaction.Behaviors>
							<EIA_SLClient_Utility_Behaviors:Background4StateBehavior>
								<EIA_SLClient_Utility_Behaviors:Background4StateBehavior.BackgroundPressed>
									<ImageBrush Stretch="Fill" ImageSource="/EIA.SLClient.PlatManage.PMMgr;component/assets/img/close-2.png"/>
								</EIA_SLClient_Utility_Behaviors:Background4StateBehavior.BackgroundPressed>
								<EIA_SLClient_Utility_Behaviors:Background4StateBehavior.BackgroundNormal>
									<ImageBrush Stretch="Fill" ImageSource="/EIA.SLClient.PlatManage.PMMgr;component/assets/img/close-1.png"/>
								</EIA_SLClient_Utility_Behaviors:Background4StateBehavior.BackgroundNormal>
								<EIA_SLClient_Utility_Behaviors:Background4StateBehavior.BackgroundMouseOver>
									<ImageBrush Stretch="Fill" ImageSource="/EIA.SLClient.PlatManage.PMMgr;component/assets/img/close-2.png"/>
								</EIA_SLClient_Utility_Behaviors:Background4StateBehavior.BackgroundMouseOver>
								<EIA_SLClient_Utility_Behaviors:Background4StateBehavior.BackgroundDisabled>
									<ImageBrush Stretch="Fill" ImageSource="/EIA.SLClient.PlatManage.PMMgr;component/assets/img/close-1.png" Opacity="0.4"/>
								</EIA_SLClient_Utility_Behaviors:Background4StateBehavior.BackgroundDisabled>
							</EIA_SLClient_Utility_Behaviors:Background4StateBehavior>
						</i:Interaction.Behaviors>
					</Button>
				</Grid>
				<Border Grid.Row="1" BorderBrush="#FFE1E1E1" Background="White" BorderThickness="1,0,1,1">
					<Grid>
						<Grid Margin="8,8,8,52">
							<Grid.ColumnDefinitions>
								<ColumnDefinition Width="80"/>
								<ColumnDefinition/>
							</Grid.ColumnDefinitions>
							<Grid.RowDefinitions>
								<RowDefinition Height="Auto" MinHeight="32"/>
								<RowDefinition/>
							</Grid.RowDefinitions>
							<TextBlock Margin="0" TextWrapping="Wrap" Text="名称：" d:LayoutOverrides="Height" HorizontalAlignment="Right" VerticalAlignment="Center"/>
							<TextBlock TextWrapping="Wrap" Text="描述：" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Row="1" d:LayoutOverrides="GridBox"/>
							<TextBox HorizontalAlignment="Left" Margin="8,8,0,8" TextWrapping="Wrap" Text="{Binding Model.OrgName, Mode=TwoWay}" Grid.Column="1" VerticalAlignment="Center" Width="120" IsReadOnly="{Binding IsEditing, Converter={StaticResource BoolenRevertConverter}, Mode=OneWay}"/>
							<TextBox Grid.Column="1" Margin="8,8,64,8" Grid.Row="1" TextWrapping="Wrap" Text="{Binding Model.OrgDes, Mode=TwoWay}" IsReadOnly="{Binding IsEditing, Converter={StaticResource BoolenRevertConverter}, Mode=OneWay}"/>
						</Grid>
						<Button Content="关闭" BorderThickness="0" Padding="0" Style="{StaticResource button_clear_style}" Command="{Binding CancelCommand}" Height="30" VerticalAlignment="Bottom" Margin="0,0,8,8" FontSize="14.667" HorizontalAlignment="Right" Width="120">
							<Button.Background>
								<ImageBrush Stretch="Fill" ImageSource="/EIA.SLClient.PlatManage.PMMgr;component/assets/img/btn1-1.png"/>
							</Button.Background>
							<i:Interaction.Behaviors>
								<EIA_SLClient_Utility_Behaviors:Background4StateBehavior>
									<EIA_SLClient_Utility_Behaviors:Background4StateBehavior.BackgroundPressed>
										<ImageBrush Stretch="Fill" ImageSource="/EIA.SLClient.PlatManage.PMMgr;component/assets/img/btn1-2.png"/>
									</EIA_SLClient_Utility_Behaviors:Background4StateBehavior.BackgroundPressed>
									<EIA_SLClient_Utility_Behaviors:Background4StateBehavior.BackgroundNormal>
										<ImageBrush Stretch="Fill" ImageSource="/EIA.SLClient.PlatManage.PMMgr;component/assets/img/btn1-1.png"/>
									</EIA_SLClient_Utility_Behaviors:Background4StateBehavior.BackgroundNormal>
									<EIA_SLClient_Utility_Behaviors:Background4StateBehavior.BackgroundMouseOver>
										<ImageBrush Stretch="Fill" ImageSource="/EIA.SLClient.PlatManage.PMMgr;component/assets/img/btn1-2.png"/>
									</EIA_SLClient_Utility_Behaviors:Background4StateBehavior.BackgroundMouseOver>
									<EIA_SLClient_Utility_Behaviors:Background4StateBehavior.BackgroundDisabled>
										<ImageBrush Stretch="Fill" ImageSource="/EIA.SLClient.PlatManage.PMMgr;component/assets/img/btn1-1.png" Opacity="0.4"/>
									</EIA_SLClient_Utility_Behaviors:Background4StateBehavior.BackgroundDisabled>
								</EIA_SLClient_Utility_Behaviors:Background4StateBehavior>
							</i:Interaction.Behaviors>
						</Button>
						<Button Content="保存" BorderThickness="0" Padding="0" Style="{StaticResource button_clear_style}" Command="{Binding SaveCommand}" Height="30" VerticalAlignment="Bottom" Margin="8,0,0,8" FontSize="14.667" HorizontalAlignment="Left" Width="120">
							<Button.Background>
								<ImageBrush ImageSource="/EIA.SLClient.PlatManage.PMMgr;component/assets/img/btn2-1.png" Stretch="Fill"/>
							</Button.Background>
							<i:Interaction.Behaviors>
								<EIA_SLClient_Utility_Behaviors:Background4StateBehavior>
									<EIA_SLClient_Utility_Behaviors:Background4StateBehavior.BackgroundPressed>
										<ImageBrush Stretch="Fill" ImageSource="/EIA.SLClient.PlatManage.PMMgr;component/assets/img/btn2-2.png"/>
									</EIA_SLClient_Utility_Behaviors:Background4StateBehavior.BackgroundPressed>
									<EIA_SLClient_Utility_Behaviors:Background4StateBehavior.BackgroundNormal>
										<ImageBrush Stretch="Fill" ImageSource="/EIA.SLClient.PlatManage.PMMgr;component/assets/img/btn2-1.png"/>
									</EIA_SLClient_Utility_Behaviors:Background4StateBehavior.BackgroundNormal>
									<EIA_SLClient_Utility_Behaviors:Background4StateBehavior.BackgroundMouseOver>
										<ImageBrush Stretch="Fill" ImageSource="/EIA.SLClient.PlatManage.PMMgr;component/assets/img/btn2-2.png"/>
									</EIA_SLClient_Utility_Behaviors:Background4StateBehavior.BackgroundMouseOver>
									<EIA_SLClient_Utility_Behaviors:Background4StateBehavior.BackgroundDisabled>
										<ImageBrush Stretch="Fill" ImageSource="/EIA.SLClient.PlatManage.PMMgr;component/assets/img/btn2-1.png" Opacity="0.4"/>
									</EIA_SLClient_Utility_Behaviors:Background4StateBehavior.BackgroundDisabled>
								</EIA_SLClient_Utility_Behaviors:Background4StateBehavior>
							</i:Interaction.Behaviors>
						</Button>
					</Grid>
				</Border>
			</Grid>
		</Grid>
	</Grid>
</UserControl>
